﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SXMeteorological.Data.Utility
{
    public class RegionType
    {
        public Dictionary<string, RegionPro> _regionType = new Dictionary<string,RegionPro>();
        private string publicPath=AppDomain.CurrentDomain.BaseDirectory;
        public RegionType()
        {
           RegionPro shanxi =new RegionPro();
            shanxi.XMin =105.489060;
            shanxi.XMax=111.246800;
            shanxi.YMin=31.712748;
            shanxi.YMax=39.582336;
            shanxi.BlnPath = publicPath  +@"boundary\陕西省.bln";
            shanxi.ShowCityNameDatPath = publicPath + @"cityDat\陕西省.dat";
            shanxi.RegionCode = "610000";
            _regionType.Add("陕西省",shanxi);
            shanxi.Height = 576;
            shanxi.Width = 800;
            shanxi.left = 0.0;
            shanxi.top = 0.2;
            shanxi.ShpPath = publicPath + @"shp\陕西省-市.shp";

           RegionPro xian = new RegionPro();
            xian.XMin=107.663500;
            xian.XMax=109.815860;
            xian.YMin=33.692707;
            xian.YMax=34.745953;
            xian.BlnPath = publicPath + @"boundary\西安市.bln";
            xian.ShowCityNameDatPath = publicPath + @"cityDat\西安市.dat";
            xian.RegionCode = "610100";
            _regionType.Add("西安市",xian);
            xian.Height = 282;
            xian.Width = 876;
            xian.left = 0.0;
            xian.top = 0.0;
            xian.ShpPath = publicPath + @"shp\西安市.shp";

            RegionPro weinan = new RegionPro();
            weinan.XMin=108.954660;
            weinan.XMax=110.608380;
            weinan.YMin=34.212692;
            weinan.YMax=35.848515;
            weinan.BlnPath = publicPath + @"boundary\渭南市.bln";
            weinan.ShowCityNameDatPath = publicPath + @"cityDat\渭南市.dat";
            weinan.RegionCode = "610500";
            _regionType.Add("渭南市",weinan);
            weinan.Height = 570;
            weinan.Width = 876;
            weinan.left = 0.0;
            weinan.top = 0.0;
            weinan.ShpPath = publicPath + @"shp\渭南市.shp";

            RegionPro baoji = new RegionPro();
            baoji.XMin=106.309150;
            baoji.XMax=108.047240;
            baoji.YMin=33.577896;
            baoji.YMax=35.102058;
            baoji.BlnPath = publicPath + @"boundary\宝鸡市.bln";
            baoji.ShowCityNameDatPath = publicPath + @"cityDat\宝鸡市.dat";
            baoji.RegionCode = "610300";
            _regionType.Add("宝鸡市",baoji);
            baoji.Height = 506;
            baoji.Width = 876;
            baoji.left = 1.0;
            baoji.top = 0.5;
            baoji.ShpPath = publicPath + @"shp\宝鸡市.shp";

            RegionPro yulin = new RegionPro();
            yulin.XMin=107.251470;
            yulin.XMax=111.246800;
            yulin.YMin=36.816036;
            yulin.YMax=39.582336;
            yulin.BlnPath = publicPath + @"boundary\榆林市.bln";
            yulin.ShowCityNameDatPath = publicPath + @"cityDat\榆林市.dat";
            yulin.RegionCode = "610800";
            _regionType.Add("榆林市",yulin);
            yulin.Height = 399;
            yulin.Width = 876;
            yulin.left = 0.0;
            yulin.top = 0.0;
            yulin.ShpPath = publicPath + @"shp\榆林市.shp";

            RegionPro hanzhong = new RegionPro();
            hanzhong.XMin=105.489060;
            hanzhong.XMax=108.278850;
            hanzhong.YMin=32.148659;
            hanzhong.YMax=33.878300;
            hanzhong.BlnPath = publicPath + @"boundary\汉中市.bln";
            hanzhong.ShowCityNameDatPath = publicPath + @"cityDat\汉中市.dat";
            hanzhong.RegionCode = "610700";
            _regionType.Add("汉中市",hanzhong);
            hanzhong.Height = 358;
            hanzhong.Width = 876;
            hanzhong.left = 0.0;
            hanzhong.top = 0.3;
            hanzhong.ShpPath = publicPath + @"shp\汉中市.shp";

            RegionPro xianyang = new RegionPro();
            xianyang.XMin=107.648570;
            xianyang.XMax = 109.168480;
            xianyang.YMin=34.199261;
            xianyang.YMax=35.552219;
            xianyang.BlnPath = publicPath + @"boundary\咸阳市.bln";
            xianyang.ShowCityNameDatPath = publicPath + @"cityDat\咸阳市.dat";
            xianyang.RegionCode = "610400";
            _regionType.Add("咸阳市",xianyang);
            xianyang.Height = 513;
            xianyang.Width = 876;
            xianyang.left = 0.0;
            xianyang.top = 0.0;
            xianyang.ShpPath = publicPath + @"shp\咸阳市.shp";


            RegionPro yanan = new RegionPro();
            yanan.XMin=107.654400;
            yanan.XMax=110.550450;
            yanan.YMin=35.352497;
            yanan.YMax=37.501038;
            yanan.BlnPath = publicPath + @"boundary\延安市.bln";
            yanan.ShowCityNameDatPath = publicPath + @"cityDat\延安市.dat";
            yanan.RegionCode = "610600";
            _regionType.Add("延安市",yanan);
            yanan.Height = 428;
            yanan.Width = 876;
            yanan.left = 0.0;
            yanan.top = 0.1;
            yanan.ShpPath = publicPath + @"shp\延安市.shp";

            RegionPro tongchuan = new RegionPro();
            tongchuan.XMin=108.581800;
            tongchuan.XMax=109.489040;
            tongchuan.YMin=34.814945;
            tongchuan.YMax=35.585529;
            tongchuan.BlnPath = publicPath + @"boundary\铜川市.bln";
            tongchuan.ShowCityNameDatPath = publicPath + @"cityDat\铜川市.dat";
            tongchuan.RegionCode = "610200";
            _regionType.Add("铜川市",tongchuan);
            tongchuan.Height = 490;
            tongchuan.Width = 876;
            tongchuan.left = 0.0;
            tongchuan.top = 0.1;
            tongchuan.ShpPath = publicPath + @"shp\铜川市.shp";

            RegionPro shangluo = new RegionPro();
            shangluo.XMin=108.564850  ;
            shangluo.XMax=111.024250;
            shangluo.YMin=33.097622;
            shangluo.YMax=34.436188;
            shangluo.BlnPath = publicPath + @"boundary\商洛市.bln";
            shangluo.ShowCityNameDatPath = publicPath + @"cityDat\商洛市.dat";
            shangluo.RegionCode = "611000";
            _regionType.Add("商洛市",shangluo);
            shangluo.Height = 314;
            shangluo.Width = 876;
            shangluo.ShpPath = publicPath + @"shp\商洛市.shp";

            RegionPro ankang = new RegionPro();
            ankang.XMin=108.028630;
            ankang.XMax=110.201300;
            ankang.YMin=31.712748;
            ankang.YMax=33.842262;
            ankang.BlnPath = publicPath + @"boundary\安康市.bln";
            ankang.ShowCityNameDatPath = publicPath + @"cityDat\安康市.dat";
            ankang.RegionCode = "610900";
            _regionType.Add("安康市",ankang);
            ankang.Height = 565;
            ankang.Width = 876;
            ankang.left=3.0;
            ankang.top=0.1;
            ankang.ShpPath = publicPath + @"shp\安康市.shp";
           
        }

    }
}
